﻿using System;
using System.Collections.Generic;
using System.Web;

namespace LRJ.Web.UI
{
    /// <summary>
    /// Summary description for ViewTemplates
    /// </summary>
    public class SnipplrList : BaseTemplate<Snipplr.SnippetCollection>
    { public SnipplrList() { } }
    public class SnipplrSnippet : BaseTemplate<Snipplr.SnippetModel>
    {
        public string sId
        {
            set 
            {
                try
                {
                    Snipplr.IApiProxy proxy = Snipplr.SnipplrProxy.Create();
                    this.View = proxy.GetSnippet(value);
                }
                catch (CookComputing.XmlRpc.XmlRpcFaultException e)
                {
                    throw e;
                }
            }
        }
        public SnipplrSnippet() { }
    }
}
